package edu.sctu.xialei.june.day20150601one;

/**
 * Created by Administrator on 5/31/2015.
 */
public class Call {
    public static void main(String[] args) {
//        Thread1 t1 = new Thread1("Thread1",1);     //创建线程对象
//        Thread1 t2 = new Thread1("Thread2",2);
//        t1.start();                                //启动执行线程
//        t2.start();
//        System.out.println("activeCount="+t2.activeCount());

//
//        Thread2 thread1 = new Thread2("one");
//        Thread2 thread2 = new Thread2("two");
//        Thread2 thread3 = new Thread2("three");
//
//        thread1.start();
//        thread2.start();
//        thread3.start();



        Thread3 thread1 = new Thread3("123456");
        Thread3 thread2 = new Thread3("123");
        Thread3 thread3 = new Thread3("1");

        Thread myThread1 = new Thread(thread1);
        Thread myThread2 = new Thread(thread2);
        Thread myThread3 = new Thread(thread3);

        myThread1.start();

//        myThread1.join(5000.00,4);

        myThread2.start();
        myThread3.start();
    }

}
